<?php
/*
 *  @author Nicolas Genevaux
 * (c)nige 2008
 */
	include_once($RACINE.'inc/fct.basedonnee.php');
	include_once($RACINE.'inc/fct.utils.php');
	include_once($RACINE.'inc/sql.inscrit.php');
	include_once($RACINE.'inc/var.pages.php');
	$res = doSQL($INSCRIT_SELECT_ID,array(0=>"'".$_POST['login']."'",1=>"'".$_POST['motdepasse']."'"));
	$_SESSION['ID_CONECT'] = $res['identifiant'];
	doSQL($INSCRIT_UPDATE_CONNEXION,array(0=>"'".$_SESSION['ID_CONECT']."'"));
	redirect($PAGE_ACCUEIL_INSCRIT);
?>
